<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>link | Kylin</title><meta name="keywords" content="学习，博客，技术交流，学习记录，Kylin，kylin"><meta name="author" content="Kylin"><meta name="copyright" content="Kylin"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="友链格式1234name: Kylinlink: https:&#x2F;&#x2F;www.codekylin.cnavatar: https:&#x2F;&#x2F;gitee.com&#x2F;kylincw&#x2F;images&#x2F;raw&#x2F;master&#x2F;avatar.jpgdescr: 学习不易，努力努力~">
<meta property="og:type" content="website">
<meta property="og:title" content="link">
<meta property="og:url" content="https://www.codekylin.cn/link/index.html">
<meta property="og:site_name" content="Kylin">
<meta property="og:description" content="友链格式1234name: Kylinlink: https:&#x2F;&#x2F;www.codekylin.cnavatar: https:&#x2F;&#x2F;gitee.com&#x2F;kylincw&#x2F;images&#x2F;raw&#x2F;master&#x2F;avatar.jpgdescr: 学习不易，努力努力~">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://qiniu.codekylin.cn/github/img/img/wallhaven-dgzqkl.jpg">
<meta property="article:published_time" content="2020-03-04T14:45:55.000Z">
<meta property="article:modified_time" content="2021-02-22T09:10:51.000Z">
<meta property="article:author" content="Kylin">
<meta property="article:tag" content="学习，博客，技术交流，学习记录，Kylin，kylin">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://qiniu.codekylin.cn/github/img/img/wallhaven-dgzqkl.jpg"><link rel="shortcut icon" href="https://qiniu.codekylin.cn/img/20200807181548.png"><link rel="canonical" href="https://www.codekylin.cn/link/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//www.google-analytics.com" crossorigin=""/><link rel="preconnect" href="//hm.baidu.com"/><link rel="preconnect" href="//fonts.googleapis.com" crossorigin=""/><meta name="google-site-verification" content="gzeyWstt6NoTZKh7YFYNLNziL8HIZ8YH2Ug7xTDX5-Y"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?f76c34daefe747deee7c7be3ead2ba80";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script><script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-159334016-1"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-159334016-1');
</script><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium+Web" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
  noticeOutdate: {"limitDay":90,"position":"top","messagePrev":"自上次更新以来已经","messageNext":"天，文章的内容可能已过时或存在差异。"},
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: {"limitCount":50000,"languages":{"author":"作者: Kylin","link":"链接: ","source":"来源: Kylin","info":"著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。"}},
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#FF0000","bgDark":"#2d3035","position":"bottom-left"},
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: true,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = { 
  isPost: false,
  isHome: false,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2021-02-22 17:10:51'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches
          const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches
          const isNotSpecified = window.matchMedia('(prefers-color-scheme: no-preference)').matches
          const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified

          if (t === undefined) {
            if (isLightMode) activateLightMode()
            else if (isDarkMode) activateDarkMode()
            else if (isNotSpecified || hasNoSupport) {
              const now = new Date()
              const hour = now.getHours()
              const isNight = hour <= 6 || hour >= 18
              isNight ? activateDarkMode() : activateLightMode()
            }
            window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
              if (saveToLocal.get('theme') === undefined) {
                e.matches ? activateDarkMode() : activateLightMode()
              }
            })
          } else if (t === 'light') activateLightMode()
          else activateDarkMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const fontSizeVal = saveToLocal.get('global-font-size')
    if (fontSizeVal !== undefined) {
      document.documentElement.style.setProperty('--global-font-size', fontSizeVal + 'px')
    }
    })(window)</script><link rel="stylesheet" href="https://qiniu.codekylin.cn/github/img/img/custom.css"><link rel="stylesheet" href="//at.alicdn.com/t/font_1993646_z05rabxf05h.css"><link rel="stylesheet" href="https://qiniu.codekylin.cn/github/img/img/icon.css"><meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="Kylin" type="application/atom+xml">
</head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" data-lazy-src="https://qiniu.codekylin.cn/img/20200807181526.jpg" onerror="onerror=null;src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">362</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">427</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">101</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fa fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="not-home-page" id="page-header" style="background-image: url('https://cdn.jsdelivr.net/gh/kylincw/img//img20201017211233.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">Kylin</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fa fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="page-site-info"><h1 id="site-title">link</h1></div></header><main class="layout" id="content-inner"><div id="page"><div id="article-container"><div class="flink"><h2>博客网站</h2><div class="flink-list"><div class="flink-list-item"><a href="https://blog.csdn.net/qq_15015743" title="CSDN" target="_blank"><img data-lazy-src="https://infinityicon.infinitynewtab.com/user-share-icon/226d9bd6e7176a22d1696d751947a178.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="CSDN"><span class="flink-item-name">CSDN</span><span class="flink-item-desc" title="专业开发者社区">专业开发者社区</span></a></div><div class="flink-list-item"><a href="https://www.jianshu.com/u/9795de925b38" title="简书" target="_blank"><img data-lazy-src="https://infinityicon.infinitynewtab.com/user-share-icon/a0137cb8b628250f276e6b8b192f2014.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="简书"><span class="flink-item-name">简书</span><span class="flink-item-desc" title="创作你的创作">创作你的创作</span></a></div><div class="flink-list-item"><a href="https://juejin.im/user/2110681974834269" title="掘金" target="_blank"><img data-lazy-src="https://infinityicon.infinitynewtab.com/user-share-icon/534995dd434a6e0e39a4521a5fe04f8e.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="掘金"><span class="flink-item-name">掘金</span><span class="flink-item-desc" title="一个帮助开发者成长的社区">一个帮助开发者成长的社区</span></a></div></div><h2>友情链接</h2><div class="flink-list"><div class="flink-list-item"><a href="https://blog.gebilaoyu.club" title="隔壁老于" target="_blank"><img data-lazy-src="https://www.gebilaoyu.club/wp-content/uploads/2020/10/avatar_1599567513960.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="隔壁老于"><span class="flink-item-name">隔壁老于</span><span class="flink-item-desc" title="每天坚持写笔记">每天坚持写笔记</span></a></div><div class="flink-list-item"><a href="https://www.wayok.cn" title="WAY’s Blog" target="_blank"><img data-lazy-src="https://www.wayok.cn/avatar" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="WAY’s Blog"><span class="flink-item-name">WAY’s Blog</span><span class="flink-item-desc" title="我亦无他，惟手熟尔。">我亦无他，惟手熟尔。</span></a></div><div class="flink-list-item"><a href="https://hexo.zhangaming.com/" title="阿明の博客" target="_blank"><img data-lazy-src="http://img.zhangaming.com/hexo/avatar.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="阿明の博客"><span class="flink-item-name">阿明の博客</span><span class="flink-item-desc" title="真正的大师永远保持一颗学徒的心">真正的大师永远保持一颗学徒的心</span></a></div><div class="flink-list-item"><a href="https://www.imzjw.cn/" title="沉默的小嘉" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/zjwo/CDN@master/img/blog/avatar.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="沉默的小嘉"><span class="flink-item-name">沉默的小嘉</span><span class="flink-item-desc" title="好记性不如烂笔头">好记性不如烂笔头</span></a></div><div class="flink-list-item"><a href="https://blog.zplayer.cloud" title="云玩家" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/cnyist/blog/img/avatar.svg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="云玩家"><span class="flink-item-name">云玩家</span><span class="flink-item-desc" title="尝试制造人工智障">尝试制造人工智障</span></a></div><div class="flink-list-item"><a href="https://bili33.top" title="GamerNoTitle" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/GamerNoTitle/Picture-repo@1.0/AboutMe/logo-mini.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="GamerNoTitle"><span class="flink-item-name">GamerNoTitle</span><span class="flink-item-desc" title="一个在懵懂无知中成长的高中生程序员^V^">一个在懵懂无知中成长的高中生程序员^V^</span></a></div><div class="flink-list-item"><a href="https://dmx.pub/" title="DmxZ" target="_blank"><img data-lazy-src="https://dmx.pub/img/avatar.png/" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="DmxZ"><span class="flink-item-name">DmxZ</span><span class="flink-item-desc" title="欢迎来到 DmxZ 的自留地！">欢迎来到 DmxZ 的自留地！</span></a></div><div class="flink-list-item"><a href="https://zyzling.gitee.io" title="Bu 弃" target="_blank"><img data-lazy-src="https://zyzling.gitee.io/img/avatar.jpeg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Bu 弃"><span class="flink-item-name">Bu 弃</span><span class="flink-item-desc" title="一个乐于分享自己所学知识的精神小伙~">一个乐于分享自己所学知识的精神小伙~</span></a></div><div class="flink-list-item"><a href="https://liuxunzhuo.tech/" title="刘训灼的AI人生" target="_blank"><img data-lazy-src="https://picreso.oss-cn-beijing.aliyuncs.com/avatar.jpeg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="刘训灼的AI人生"><span class="flink-item-name">刘训灼的AI人生</span><span class="flink-item-desc" title="分享 Machine Learning、Deep Learning、NLP相关内容">分享 Machine Learning、Deep Learning、NLP相关内容</span></a></div><div class="flink-list-item"><a href="https://huohuohuohuohuohuo.github.io/" title="惑" target="_blank"><img data-lazy-src="https://huohuohuohuohuohuo.github.io/img/avatar.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="惑"><span class="flink-item-name">惑</span><span class="flink-item-desc" title="楼下我老婆( •̀ .̫ •́ )✧">楼下我老婆( •̀ .̫ •́ )✧</span></a></div><div class="flink-list-item"><a href="https://skiron.xyz/" title="安东尼的小不二" target="_blank"><img data-lazy-src="http://cdn.jsdelivr.net/gh/SkironYong/skironImgs/img/20200412224151.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="安东尼的小不二"><span class="flink-item-name">安东尼的小不二</span><span class="flink-item-desc" title="探索、记录、分享">探索、记录、分享</span></a></div><div class="flink-list-item"><a href="http://hkjjsgdd.gitee.io/blog/" title="特爱瞎折腾" target="_blank"><img data-lazy-src="https://i.loli.net/2020/04/14/h7i5AMKugC6fSdl.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="特爱瞎折腾"><span class="flink-item-name">特爱瞎折腾</span><span class="flink-item-desc" title="可以今天解决的事就不脱到明天了">可以今天解决的事就不脱到明天了</span></a></div><div class="flink-list-item"><a href="https://cungudafa.top/" title="cungudafa" target="_blank"><img data-lazy-src="https://cungudafa.top/img/avatar.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="cungudafa"><span class="flink-item-name">cungudafa</span><span class="flink-item-desc" title="一个学习记录者！">一个学习记录者！</span></a></div><div class="flink-list-item"><a href="https://www.kingcrown.top/" title="Mr.Wang’s Blog" target="_blank"><img data-lazy-src="https://www.kingcrown.top/favicon.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Mr.Wang’s Blog"><span class="flink-item-name">Mr.Wang’s Blog</span><span class="flink-item-desc" title="良辰美景">良辰美景</span></a></div><div class="flink-list-item"><a href="https://www.thisfaner.com/" title="就是这个范儿" target="_blank"><img data-lazy-src="https://www.thisfaner.com/images/bio/avatar.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="就是这个范儿"><span class="flink-item-name">就是这个范儿</span><span class="flink-item-desc" title="如无必要，勿增实体。">如无必要，勿增实体。</span></a></div><div class="flink-list-item"><a href="https://www.jzkycc.top/" title="JzkYcc" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/jzkycc/CDN/blog-photo/loading/4.gif" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="JzkYcc"><span class="flink-item-name">JzkYcc</span><span class="flink-item-desc" title="Just do it!">Just do it!</span></a></div><div class="flink-list-item"><a href="https://zhouyunfei.club" title="黑白蓝的Blog" target="_blank"><img data-lazy-src="https://img-blog.csdnimg.cn/2020043009205871.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1pob3VZdW5GZWkwNDI=,size_16,color_FFFFFF,t_70" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="黑白蓝的Blog"><span class="flink-item-name">黑白蓝的Blog</span><span class="flink-item-desc" title="大多数人生活在平静的绝望之中。">大多数人生活在平静的绝望之中。</span></a></div><div class="flink-list-item"><a href="https://wangdudyb.gitee.io/blog" title="程序小黑" target="_blank"><img data-lazy-src="https://wangdudyb.gitee.io/blog/img/favicon-32x32.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="程序小黑"><span class="flink-item-name">程序小黑</span><span class="flink-item-desc" title="软件资源的领路人 | 小黑出品，必属精品">软件资源的领路人 | 小黑出品，必属精品</span></a></div><div class="flink-list-item"><a href="https://xder.me" title="XDER" target="_blank"><img data-lazy-src="https://xder.me/favicon/android-chrome-512x512.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="XDER"><span class="flink-item-name">XDER</span><span class="flink-item-desc" title="用记录替代记忆">用记录替代记忆</span></a></div><div class="flink-list-item"><a href="https://mzdluo123.github.io/" title="HelloWorld的小博客" target="_blank"><img data-lazy-src="https://s.gravatar.com/avatar/f7e8af6d341b76ad3de6757a8f86f2b4?s=80" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="HelloWorld的小博客"><span class="flink-item-name">HelloWorld的小博客</span><span class="flink-item-desc" title="额。。。。。。不知道呢┑(￣Д ￣)┍">额。。。。。。不知道呢┑(￣Д ￣)┍</span></a></div><div class="flink-list-item"><a href="https://snow.js.org/" title="Seeker" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/SerokSSR/img/share.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Seeker"><span class="flink-item-name">Seeker</span><span class="flink-item-desc" title="木有灵兮">木有灵兮</span></a></div><div class="flink-list-item"><a href="https://echon.top" title="回响小站" target="_blank"><img data-lazy-src="https://i.loli.net/2020/04/24/pADyi12KEcV7Yb4.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="回响小站"><span class="flink-item-name">回响小站</span><span class="flink-item-desc" title="Pr-Ac-Ti-Ce">Pr-Ac-Ti-Ce</span></a></div><div class="flink-list-item"><a href="https://lpdswing.com" title="lpdswing" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/Yafine/Yafine-imgs/images/avatar.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="lpdswing"><span class="flink-item-name">lpdswing</span><span class="flink-item-desc" title="我不是大牛，但是正在成为大牛的路上~~">我不是大牛，但是正在成为大牛的路上~~</span></a></div><div class="flink-list-item"><a href="https://www.hack-er.cn/" title="CtrlCV博客" target="_blank"><img data-lazy-src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1589536610045&amp;di=e3b590a5d405dd6018e6a85c44110053&amp;imgtype=0&amp;src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201705%2F28%2F20170528220451_GJKWS.thumb.700_0.jpeg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="CtrlCV博客"><span class="flink-item-name">CtrlCV博客</span><span class="flink-item-desc" title="专注于分享">专注于分享</span></a></div><div class="flink-list-item"><a href="https://www.zygd.site" title="纵饮孤独" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/zygds/api-logo@master/admin.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="纵饮孤独"><span class="flink-item-name">纵饮孤独</span><span class="flink-item-desc" title="纵饮孤独，让我们聚集在一起纵饮百年孤独">纵饮孤独，让我们聚集在一起纵饮百年孤独</span></a></div><div class="flink-list-item"><a href="https://iblog.simon7.top/" title="Simon’s Blog" target="_blank"><img data-lazy-src="https://iblog.simon7.top/static/images/avatar.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Simon’s Blog"><span class="flink-item-name">Simon’s Blog</span><span class="flink-item-desc" title="一花一世界，一叶一菩提">一花一世界，一叶一菩提</span></a></div><div class="flink-list-item"><a href="https://www.xiafine.com/" title="不染白龙" target="_blank"><img data-lazy-src="https://www.xiafine.com/favicon.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="不染白龙"><span class="flink-item-name">不染白龙</span><span class="flink-item-desc" title="一名网络安全的小菜鸡">一名网络安全的小菜鸡</span></a></div><div class="flink-list-item"><a href="https://www.erunn.xyz/" title="pikachues" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/xiaoxiaoshou/staticResouce/img/pikachues.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="pikachues"><span class="flink-item-name">pikachues</span><span class="flink-item-desc" title="Better Luck Tomorrow">Better Luck Tomorrow</span></a></div><div class="flink-list-item"><a href="https://www.codeyee.com" title="LCyee Blog" target="_blank"><img data-lazy-src="https://www.codeyee.com/avatar" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="LCyee Blog"><span class="flink-item-name">LCyee Blog</span><span class="flink-item-desc" title="通往体面生活的路上">通往体面生活的路上</span></a></div><div class="flink-list-item"><a href="http://mvvm.io" title="浩瀚" target="_blank"><img data-lazy-src="https://q1.qlogo.cn/g?b=qq&amp;nk=2369710264&amp;s=640" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="浩瀚"><span class="flink-item-name">浩瀚</span><span class="flink-item-desc" title="今天也要开心鸭~">今天也要开心鸭~</span></a></div><div class="flink-list-item"><a href="https://yww52.com/" title="Yw" target="_blank"><img data-lazy-src="https://img.yww52.com/avatar.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Yw"><span class="flink-item-name">Yw</span><span class="flink-item-desc" title="永远相信美好的事情即将发生">永远相信美好的事情即将发生</span></a></div><div class="flink-list-item"><a href="http://fabian4.gitee.io/" title="丁生" target="_blank"><img data-lazy-src="https://i.loli.net/2020/04/23/ZWnOQA3kUGKXSjJ.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="丁生"><span class="flink-item-name">丁生</span><span class="flink-item-desc" title="一个编程小白的个人成长记录博客">一个编程小白的个人成长记录博客</span></a></div><div class="flink-list-item"><a href="https://nekodeng.gitee.io/" title="itsNekoDeng" target="_blank"><img data-lazy-src="https://nekodeng.gitee.io/medias/avatar.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="itsNekoDeng"><span class="flink-item-name">itsNekoDeng</span><span class="flink-item-desc" title="一只努力学习的十万伏特皮卡丘，梦想是世界和平，想要发光发热">一只努力学习的十万伏特皮卡丘，梦想是世界和平，想要发光发热</span></a></div><div class="flink-list-item"><a href="https://blog.zhheo.com/" title="Heo" target="_blank"><img data-lazy-src="https://blog.zhheo.com/img/avatar.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Heo"><span class="flink-item-name">Heo</span><span class="flink-item-desc" title="爱折腾的设计师">爱折腾的设计师</span></a></div><div class="flink-list-item"><a href="https://aoswi.com/" title="顾思维" target="_blank"><img data-lazy-src="https://q1.qlogo.cn/g?b=qq&amp;nk=83856521&amp;s=640" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="顾思维"><span class="flink-item-name">顾思维</span><span class="flink-item-desc" title="Run towards the target.">Run towards the target.</span></a></div><div class="flink-list-item"><a href="https://ding-zk.top" title="Ding-zk" target="_blank"><img data-lazy-src="https://cdn.jsdelivr.net/gh/ding-zk/CDN@master/BlogPicture/blog/avatar.webp" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="Ding-zk"><span class="flink-item-name">Ding-zk</span><span class="flink-item-desc" title="Just do it!">Just do it!</span></a></div><div class="flink-list-item"><a href="https://www.zestaken.top" title="ZestJourney" target="_blank"><img data-lazy-src="https://gitee.com/zhangjie0524/picgo/raw/master/20210529191900.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="ZestJourney"><span class="flink-item-name">ZestJourney</span><span class="flink-item-desc" title="自由的代价~">自由的代价~</span></a></div><div class="flink-list-item"><a href="https://furrysp.top" title="LonYJ’s blog" target="_blank"><img data-lazy-src="https://sdn.geekzu.org/avatar/26fb4e9d679e499d8545df9f2aea519c?s=100" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="LonYJ’s blog"><span class="flink-item-name">LonYJ’s blog</span><span class="flink-item-desc" title="あなたは主人公になりたいですか?">あなたは主人公になりたいですか?</span></a></div><div class="flink-list-item"><a href="https://www.xindong350.top/" title="小城故事" target="_blank"><img data-lazy-src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic2.zhimg.com%2Fv2-c934978f01cfd1537f84cea98f57d326_r.jpg%3Fsource%3D1940ef5c&amp;refer=http%3A%2F%2Fpic2.zhimg.com&amp;app=2002&amp;size=f9999,10000&amp;q=a80&amp;n=0&amp;g=0n&amp;fmt=jpeg?sec=1645264332&amp;t=2d31f3f5a1fd36d2851ffd19765faa47" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="小城故事"><span class="flink-item-name">小城故事</span><span class="flink-item-desc" title="欢迎来到小城故事！">欢迎来到小城故事！</span></a></div><div class="flink-list-item"><a href="https://blog.jacksonxe.cn/#/" title="JacksonXEのBlog" target="_blank"><img data-lazy-src="https://img.jacksonxe.cn/2022/02/03/af362a04b737e.png" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="JacksonXEのBlog"><span class="flink-item-name">JacksonXEのBlog</span><span class="flink-item-desc" title="JacksonXE与你同在~">JacksonXE与你同在~</span></a></div></div><h2 id="友链格式"><a href="#友链格式" class="headerlink" title="友链格式"></a>友链格式</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">name: Kylin</span><br><span class="line">link: https://www.codekylin.cn</span><br><span class="line">avatar: https://gitee.com/kylincw/images/raw/master/avatar.jpg</span><br><span class="line">descr: 学习不易，努力努力~</span><br></pre></td></tr></table></figure>





</div></div><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div class="vcomment" id="vcomment"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" data-lazy-src="https://qiniu.codekylin.cn/img/20200807181526.jpg" onerror="this.onerror=null;this.src='https://qiniu.codekylin.cn/github/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">Kylin</div><div class="author-info__description">学习不易，努力努力~</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">362</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">427</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">101</div></a></div></div><a class="button--animated" id="card-info-btn"><i class="fas fa-bookmark"></i><span>加入书签</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/kylincw" target="_blank" title="Github"><i class="iconfont icon-github"></i></a><a class="social-icon" href="tencent://message/?Menu=yes&amp;uin=171346168&amp;Service=300&amp;sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45" target="_blank" title="qq"><i class="iconfont icon-qq"></i></a><a class="social-icon" href="https://space.bilibili.com/53836035" target="_blank" title="BiliBili"><i class="iconfont icon-bilibili-line"></i></a><a class="social-icon" href="mailto:zhang171346168@qq.com" target="_blank" title="Email"><i class="iconfont icon-email1"></i></a><a class="social-icon" href="/atom.xml" target="_blank" title="RSS"><i class="iconfont icon-rss"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">学习不易，努力努力！</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/56352.html" title="be动词"><img data-lazy-src="https://qiniu.codekylin.cn/github/img/img/博客封面10.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="be动词"/></a><div class="content"><a class="title" href="/56352.html" title="be动词">be动词</a><time datetime="2022-07-12T11:47:29.800Z" title="更新于 2022-07-12 19:47:29">2022-07-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/36436.html" title="JVM堆内存"><img data-lazy-src="https://qiniu.codekylin.cn/img/20200418115059.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="JVM堆内存"/></a><div class="content"><a class="title" href="/36436.html" title="JVM堆内存">JVM堆内存</a><time datetime="2022-07-12T11:47:29.800Z" title="更新于 2022-07-12 19:47:29">2022-07-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/44292.html" title="Java多线程详解"><img data-lazy-src="https://qiniu.codekylin.cn/github/img/img/wallhaven-eorjzk.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java多线程详解"/></a><div class="content"><a class="title" href="/44292.html" title="Java多线程详解">Java多线程详解</a><time datetime="2022-07-12T11:47:29.800Z" title="更新于 2022-07-12 19:47:29">2022-07-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/40200.html" title="谷粒商城记录"><img data-lazy-src="https://qiniu.codekylin.cn/github/img/img/wallhaven-6qvvrx.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="谷粒商城记录"/></a><div class="content"><a class="title" href="/40200.html" title="谷粒商城记录">谷粒商城记录</a><time datetime="2022-07-12T11:47:29.800Z" title="更新于 2022-07-12 19:47:29">2022-07-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/27082.html" title="Spring学习-3"><img data-lazy-src="https://qiniu.codekylin.cn/github/img/img/wallhaven-4x28xo.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Spring学习-3"/></a><div class="content"><a class="title" href="/27082.html" title="Spring学习-3">Spring学习-3</a><time datetime="2022-07-12T11:47:29.799Z" title="更新于 2022-07-12 19:47:29">2022-07-12</time></div></div></div></div><div class="card-widget" id="card-newest-comments"><div class="item-headline"><i class="fas fa-bolt"></i><span>最新评论</span></div><div class="aside-list"><span>正在加载中...</span></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            <a class="card-more-btn" href="/categories/" title="查看更多">
    <i class="fas fa-angle-right"></i></a>
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item parent"><a class="card-category-list-link" href="/categories/Docker/"><span class="card-category-list-name">Docker</span><span class="card-category-list-count">8</span><i class="fas fa-caret-left "></i></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Docker/CIG/"><span class="card-category-list-name">CIG</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Docker/compose/"><span class="card-category-list-name">compose</span><span class="card-category-list-count">1</span></a></li></ul></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Elasticsearch/"><span class="card-category-list-name">Elasticsearch</span><span class="card-category-list-count">5</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/English/"><span class="card-category-list-name">English</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item parent"><a class="card-category-list-link" href="/categories/Java/"><span class="card-category-list-name">Java</span><span class="card-category-list-count">69</span><i class="fas fa-caret-left "></i></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Java/IO%E6%B5%81/"><span class="card-category-list-name">IO流</span><span class="card-category-list-count">10</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Java/JDBC/"><span class="card-category-list-name">JDBC</span><span class="card-category-list-count">5</span></a></li></ul></li>
            </ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/ajax/" style="font-size: 1.15em; color: rgb(29, 46, 14)">ajax</a><a href="/tags/SpringBoot/" style="font-size: 1.45em; color: rgb(40, 91, 26)">SpringBoot</a><a href="/tags/Docker/" style="font-size: 1.3em; color: rgb(68, 166, 82)">Docker</a><a href="/tags/Dockerfile/" style="font-size: 1.15em; color: rgb(1, 93, 85)">Dockerfile</a><a href="/tags/%E5%AE%89%E8%A3%85/" style="font-size: 1.15em; color: rgb(194, 55, 83)">安装</a><a href="/tags/%E5%8D%B8%E8%BD%BD/" style="font-size: 1.15em; color: rgb(43, 190, 86)">卸载</a><a href="/tags/Docker%E7%9A%84%E4%BD%BF%E7%94%A8/" style="font-size: 1.15em; color: rgb(98, 192, 42)">Docker的使用</a><a href="/tags/Portainer/" style="font-size: 1.15em; color: rgb(180, 104, 53)">Portainer</a><a href="/tags/ES6/" style="font-size: 1.15em; color: rgb(185, 98, 89)">ES6</a><a href="/tags/%E7%AE%AD%E5%A4%B4%E5%87%BD%E6%95%B0/" style="font-size: 1.15em; color: rgb(135, 130, 156)">箭头函数</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span><a class="card-more-btn" href="/archives/" title="查看更多">
    <i class="fas fa-angle-right"></i></a></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/03/"><span class="card-archive-list-date">2022年03月</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/02/"><span class="card-archive-list-date">2022年02月</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/01/"><span class="card-archive-list-date">2022年01月</span><span class="card-archive-list-count">11</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/12/"><span class="card-archive-list-date">2021年12月</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/11/"><span class="card-archive-list-date">2021年11月</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/06/"><span class="card-archive-list-date">2021年06月</span><span class="card-archive-list-count">5</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/05/"><span class="card-archive-list-date">2021年05月</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/03/"><span class="card-archive-list-date">2021年03月</span><span class="card-archive-list-count">4</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">362</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2019-08-01T16:00:00.000Z"></div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">539.1k</div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2022-10-12T13:14:25.092Z"></div></div></div></div></div></div></main><footer id="footer" style="background-image: url('https://cdn.jsdelivr.net/gh/kylincw/img//img20201017211233.jpg')"><div id="footer-wrap"><div class="copyright">&copy;2019 - 2022 By Kylin</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><a target="_blank" rel="noopener" href="https://beian.miit.gov.cn/"><img class="icp-icon" src="https://img.alicdn.com/tfs/TB1..50QpXXXXX7XpXXXXXXXXXX-40-40.png"><span>湘ICP备2022005420号-1</span></a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="font-plus" type="button" title="放大字体"><i class="fas fa-plus"></i></button><button id="font-minus" type="button" title="缩小字体"><i class="fas fa-minus"></i></button><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div></div><hr/><div id="local-search-results"></div><span class="search-close-button"><i class="fas fa-times"></i></span></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>function loadValine () {
  function initValine () {
    const valine = new Valine(Object.assign({
      el: '#vcomment',
      appId: 'ClIyIUhj1ue2rcRTsApYCR50-gzGzoHsz',
      appKey: 'ATug9IScYQBHILhKWEqBHYxM',
      placeholder: '昵称填入QQ号能获取到QQ头像哦~请输入正确的邮箱地址，你将会快速收到我的回复并且通过邮件通知你！~',
      avatar: 'robohash',
      meta: 'nick,mail,link'.split(','),
      pageSize: '10',
      lang: 'zh-cn',
      recordIP: false,
      serverURLs: 'https://cliyiuhj.lc-cn-n1-shared.com',
      emojiCDN: '',
      emojiMaps: "",
      enableQQ: true,
      path: window.location.pathname,
      requiredFields: ["nick,mail"],
      visitor: false
    }, null))
  }

  if (typeof Valine === 'function') initValine() 
  else getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js').then(initValine)
}

if ('Valine' === 'Valine' || !true) {
  if (true) btf.loadComment(document.getElementById('vcomment'),loadValine)
  else setTimeout(loadValine, 0)
} else {
  function loadOtherComment () {
    loadValine()
  }
}</script></div><script src="https://cdn.jsdelivr.net/npm/blueimp-md5@2.17.0/js/md5.min.js"></script><script>window.addEventListener('load', () => {
  const changeContent = (content) => {
    if (content === '') return content

    content = content.replace(/<img.*?src="(.*?)"?[^\>]+>/ig, '[图片]') // replace image link
    content = content.replace(/<a[^>]+?href=["']?([^"']+)["']?[^>]*>([^<]+)<\/a>/gi, '[链接]') // replace url
    content = content.replace(/<pre><code>.*?<\/pre>/gi, '[代码]') // replace code
    content = content.replace(/<[^>]+>/g,"") // remove html tag

    if (content.length > 150) {
      content = content.substring(0,150) + '...'
    }
    return content
  }

  const getIcon = (icon, mail) => {
    if (icon) return icon
    let defaultIcon = '?d=robohash'
    let iconUrl = `https://gravatar.loli.net/avatar/${md5(mail.toLowerCase()) + defaultIcon}`
    return iconUrl
  }

  const generateHtml = array => {
    let result = ''

    if (array.length) {
      for (let i = 0; i < array.length; i++) {
        result += '<div class=\'aside-list-item\'>'

        if (true) {
          const name = 'data-lazy-src'
          result += `<a href='${array[i].url}' class='thumbnail'><img ${name}='${array[i].avatar}' alt='${array[i].nick}'></a>`
        }

        result += `<div class='content'>
        <a class='comment' href='${array[i].url}'>${array[i].content}</a>
        <div class='name'><span>${array[i].nick} / </span><time datetime="${array[i].date}">${btf.diffDate(array[i].date, true)}</time></div>
        </div></div>`
      }
    } else {
      result += '没有评论'
    }

    let $dom = document.querySelector('#card-newest-comments .aside-list')
    $dom.innerHTML= result
    window.lazyLoadInstance && window.lazyLoadInstance.update()
    window.pjax && window.pjax.refresh($dom)
  }

  const getComment = () => {
    const serverURL = 'https://cliyiuhj.lc-cn-n1-shared.com'

    var settings = {
      "method": "GET",
      "headers": {
        "X-LC-Id": 'ClIyIUhj1ue2rcRTsApYCR50-gzGzoHsz',
        "X-LC-Key": 'ATug9IScYQBHILhKWEqBHYxM',
        "Content-Type": "application/json"
      },
    }

    fetch(`${serverURL}/1.1/classes/Comment?limit=6&order=-createdAt`,settings)
      .then(response => response.json())
      .then(data => {
        const valineArray = data.results.map(function (e) {
          return {
            'avatar': getIcon(e.QQAvatar, e.mail),
            'content': changeContent(e.comment),
            'nick': e.nick,
            'url': e.url + '#' + e.objectId,
            'date': e.updatedAt,
          }
        })
        saveToLocal.set('valine-newest-comments', JSON.stringify(valineArray), 10/(60*24))
        generateHtml(valineArray)
      }).catch(e => {
        const $dom = document.querySelector('#card-newest-comments .aside-list')
        $dom.innerHTML= "无法获取评论，请确认相关配置是否正确"
      }) 
  }

  const newestCommentInit = () => {
    if (document.querySelector('#card-newest-comments .aside-list')) {
      const data = saveToLocal.get('valine-newest-comments')
      if (data) {
        generateHtml(JSON.parse(data))
      } else {
        getComment()
      }
    }
  }

  newestCommentInit()
  document.addEventListener('pjax:complete', newestCommentInit)
})</script><script defer="defer" id="ribbon" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="false" data-click="true"></script><script defer="defer" id="fluttering_ribbon" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js"></script></div></body></html>